package model;

/**
 * User: Станислав
 * Date: 30.08.14
 */
public class Unit {
    public int hp;
    public int level;

    public Unit(int hp, int level) {
        this.hp = hp;
        this.level = level;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }


    @Override
    public String toString() {
        return "Unit{" +
                "hp=" + hp +
                ", level=" + level +
                '}';
    }

    public class Infantry extends Unit {

        public Infantry(int hp, int level) {
            super(hp, level);
        }
    }

    public class Cavalry extends Unit {


        public Cavalry(int hp, int level) {
            super(hp, level);
        }

    }




}
